﻿namespace Basic.FormRemoteModel.Form.Model
{
    public enum StructureType
    {
        /// <summary>
        /// 表单
        /// </summary>
        Table = 0,
        /// <summary>
        /// 单行表单
        /// </summary>
        Single = 3,
        /// <summary>
        /// 表单组
        /// </summary>
        Group = 1,
        /// <summary>
        /// 表单列
        /// </summary>
        Column = 2,
        /// <summary>
        /// 表单
        /// </summary>
        Form = 4,
        /// <summary>
        /// 物理表
        /// </summary>
        Physics = 5
    }
    public class StructureColumn
    {
        public long Id
        {
            get;
            set;
        }
        /// <summary>
        /// 表单组名
        /// </summary>
        public string Label { get; set; }

        public string Name { get; set; }

        public StructureType Type { get; set; }
        public FormRecordDataType? DataType { get; set; }

        public DataFuncType? FuncType { get; set; }
        public int Sort { get; set; }
        public StructureColumn[] Children { get; set; }

        public KeyValuePair<string, string>[] Items { get; set; }
        public long? DicId { get; set; }
    }
}
